package com.anyou.mall.scancode;

import com.anyou.common.core.controller.BaseController;
import com.anyou.common.core.domain.ApiResult;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author liqipeng
 * @description 生成二维码-控制类
 * @date 2022-04-01
 */
@RestController
@Api(tags = "生成二维码-接口相关")
@ApiSupport(author = "tujianjun")
@RequestMapping("/scan"+"/scanCode2")
public class ScanCode2Controller extends BaseController {



    @ApiOperation(value = "根据订单号生成二维码的base64字符串")
    @PreAuthorize("@ss.hasPermi('scan:code:create')")
    @PostMapping(value = "/getTopBackground")
    public ApiResult<String> createCode(@Valid @RequestBody ScanCodeParam scanCodeParam) {
//        driverService.createCode(scanCodeParam);
        return  ApiResult.success("");
    }




}

